﻿
         #parse("${skin.TemplateName}/include/nav.htm")
       
    </div>
    <!--end header-->
    <div class="blank4">
    </div>
    <!--头部半通，按钮-->
    <div class="wrap">
  $cmn.Advertise("Index_1").Advertise
    </div>
    <div class="wrap">
        $cmn.Advertise("Index_2").Advertise
    </div>
    <!--首页第一部分-->
    <div class="blank4">
    </div>
    <div class="wk_mr_wrap">
        <div class="col_side">
            <div class="slideshow clearfix">
                    <div class="focus">
                    <ul>
                        
                      
             #foreach($ListInfo in $cmn.ModuleList(${page.ChannelId.ToString()},4,"article"," flag !='' ","adddate desc",true,true,${site.CacheSecond}))
             #if(${velocityCount}==1)
                <li id="focus${velocityCount}" style="display: block;"><a href="${ListInfo.Url}"  target="_blank">
                            <img src="${ListInfo.Img}" width="389" height="246"
                                alt="${ListInfo.Title}" /></a>
                            <h3>
                                <a href="${ListInfo.Url}"  target="_blank">${ListInfo.Title}</a></h3>
                            <div class="img_content">
                                <a href="${ListInfo.Url}"  target="_blank">${ListInfo.Title}</a></div>
                        </li>
            #else
            <li id="focus${velocityCount}" style="display:none;"><a href="${ListInfo.Url}"  target="_blank">
                            <img src="${ListInfo.Img}" width="389" height="246"
                                alt="${ListInfo.Title}" /></a>
                            <h3>
                                <a href="${ListInfo.Url}"  target="_blank">${ListInfo.Title}</a></h3>
                            <div class="img_content">
                                <a href="${ListInfo.Url}"  target="_blank">${ListInfo.Title}</a></div>
                        </li>
            #end
                #end 
                        
                    </ul>
                    <div class="image_mask">
                    </div>
                    <div class="pagenum">

                 #foreach($ListInfo in $cmn.ModuleList(${page.ChannelId.ToString()},4,"article"," flag !='' ","adddate desc",true,true,${site.CacheSecond}))
                 #set ($n= ${velocityCount} - 1)
                   #if(${velocityCount}==1)
                 <a target="_self" id="focusnav${velocityCount}" onmouseover="javascript:setfocus($n);"  href="javascript:setfocus($n);" class="active">${velocityCount}</a>
                #else
                 <a target="_self" id="focusnav${velocityCount}" onmouseover="javascript:setfocus($n);"  href="javascript:setfocus($n);" class="">${velocityCount}</a>

                #end
                	 
                #end 
                    </div>
                </div>
            </div>
            <div class="key_words">
              <span>热门Tag：</span>    #foreach($Info in $tag.List("${page.Channel.Path}",10))
                 <a href="${Info.Url}"  target="_blank">${Info.TagName}</a>| 
                #end 
            </div>
            <!--最新-->
            <div class="text_box news_list">
                <h3>
                    最新</h3>
                <ul class="clearfix">
                  #foreach($ListInfo in $cmn.ModuleList(${page.ChannelId.ToString()},10,"article","adddate desc",true,${site.CacheSecond}))
                 <li> <a href="${ListInfo.Url}"  target="_blank">${ListInfo.GetLengthTitle(34)}</a></li>
                #end 
                </ul>
            </div>
            <div class="blank10">
            </div>
            <div class="blank10">
            </div>
        </div>
        <div class="col_main">
            <!--推荐-->
            <div class="news_list">
                <h3>
                    推荐</h3>
                <ul class="clearfix">
                    #foreach($ListInfo in $cmn.ModuleList(${page.ChannelId.ToString()},21,"article","   flag !='' ","",true,${site.CacheSecond}))
                     #if(${velocityCount}==1)
                <li> <a href="${ListInfo.Url}"  target="_blank"><h3>${ListInfo.GetLengthTitle(36)}</h3></a>
                <p>$!cmn.GetLengthString(${ListInfo.Summary},100,true)</p>
                </li>
                #else
                  <li> <a href="${ListInfo.Url}"  target="_blank">${ListInfo.GetLengthTitle(36)}</a></li>

                #end
                
                #end 
                </ul>
            </div>
            <div class="blank10">
            </div>
        </div>
        <div class="col_extra">
            <div class="news_list">
                <h3>
                    点击排行</h3>
                <ul class="clearfix">
                    #foreach($ListInfo in $cmn.ModuleList(${page.ChannelId.ToString()},10,"article","viewnum desc",true,${site.CacheSecond}))
                 <li> <a href="${ListInfo.Url}"  target="_blank">${ListInfo.GetLengthTitle(36)}</a></li>
                #end 
                </ul>
            </div>
            <div class="blank4">
            </div>
            <div class="news_list">
                <h3>
                    推荐排行</a></h3>
                <ul class="clearfix">
                     #foreach($ListInfo in $cmn.ModuleList(${page.ChannelId.ToString()},10,"article","supportnum desc",true,${site.CacheSecond}))
                 <li> <a href="${ListInfo.Url}"  target="_blank">${ListInfo.GetLengthTitle(36)}</a></li>
                #end 
                </ul>
            </div>
        </div>
    </div>
    <div class="blank4">
    </div>
    <script type="text/javascript">

	<!--<![CDATA[-->

	var num;

	num = 0;

	setTimeout('change_img()', 3000);

	function change_img() {

		if (num > 3) num = 0;

		setTimeout('setfocus(' + num + ')', 3000);

		num++;

		tt = setTimeout('change_img()', 3000);

	}



	function setfocus(id) {

		selectLayer(id);

	}



	function selectLayer(id) {

		var layers = [document.getElementById("focus1"), document.getElementById("focus2"), document.getElementById("focus3"),document.getElementById("focus4")];

		var layernavs = [document.getElementById("focusnav1"), document.getElementById("focusnav2"), document.getElementById("focusnav3"),document.getElementById("focusnav4")];

		for (var i = 0; i < layers.length; i++) {

			if (!layernavs[i]) continue;

			if (i == id) {

				layernavs[i].className = "active";

				layers[i].style.display = "block";

			} else {

				layernavs[i].className = "";

				layers[i].style.display = "none";

			}

		}		

	}

	<!--]]>-->

    </script>
    <div class="blank4">
    </div>
    <!--二屏通栏-->
   <div class="wrap">
         $cmn.Advertise("Index_3").Advertise
    </div>
    <!--首页第二部分-->
    <div class="blank4">
    </div>
    <!--三屏通栏-->
    <div class="wrap">
         $cmn.Advertise("Index_4").Advertise
    </div>
    <!--首页第三部分-->
    <div class="blank4">
    </div>
    <div class="wrap clearfix">
        <div class="col-main-s fleft">
         #foreach($ClassEntity in $cmn.ChannelList(${page.ChannelId}))
       #odd
        <div class="blank4"></div>
      <div class="beauty news_list fleft">
        #even
         <div class="plastic  fright news_list ">
        
         #each



            
                <h3>
                    <a href="${ClassEntity.Url}">${ClassEntity.Title}</a></h3>
                <ul class="clearfix">
                  #foreach($ListInfo in $cmn.ModuleList(${ClassEntity.Id.ToString()},10,"article","adddate desc",true,${site.CacheSecond}))
                <li><a  href="${cmn.GetChannelByPath($ListInfo.Path).Url}"> <span class="colorchannel">[${cmn.GetChannelByPath($ListInfo.Path).Title}]</span></a><a href="${ListInfo.Url}" target="_blank">${ListInfo.GetLengthTitle(28)}</a></li>
                #end
                </ul>
            </div>
           #end 
         
        </div>
        <div class="col-side-s fright">
         <div class="best  fright news_list ">
                <h3>
                    全站精华</h3>
                <ul class="clearfix">
                     #foreach($ListInfo in $cmn.ModuleList("",12,"article"," flag !='' ","id desc",true,${site.CacheSecond}))
                 <li><a  href="${cmn.GetChannelByPath(${ListInfo.Path}).Url}"  target="_blank"> <span class="colorchannel">[${cmn.GetChannelByPath($ListInfo.Path).Title}]</span></a><a href="${ListInfo.Url}"  target="_blank">${ListInfo.GetLengthTitle(34)}</a></li>
                #end 
                </ul>
            </div>
        </div>
         <div class="blank4 fen">
    </div>
         <div class="clearfix news_list showinfo">
        <h3>
            <a href="">鬼图片</a></h3>
        <ul class="clearfix">
         #foreach($ListInfo in $cmn.ModuleList(${page.ChannelId.ToString()},10,"article","img!=''","adddate desc",true,true,${site.CacheSecond}))
                <li>  <img  src="${ListInfo.Img}"  alt="${ListInfo.Title}" title="${ListInfo.Title}" /><p><a href="${ListInfo.Url}" target="_blank">${ListInfo.GetLengthTitle(28)}</a></p></li>
                #end
        </ul>
    </div>
         
    </div>
    <div class="blank4">
    </div>
    
    <!--底部通栏-->
    <div class="wrap">
         $cmn.Advertise("Index_5").Advertise
    </div>
    <!--首页第四部分-->
    
       #parse("${skin.TemplateName}/include/footer.htm")
    
</body>
</html>
